package edu.njust.underwater.service;

import com.baomidou.mybatisplus.extension.service.IService;
import edu.njust.underwater.common.Result;
import edu.njust.underwater.pojo.Comment;

/**
* @author Goal
* @description 针对表【comment(评论表)】的数据库操作Service
* @createDate 2023-12-24 21:35:41
*/
public interface CommentService extends IService<Comment> {

    Result getAll(Long articleId);

    Result addOne(Long articleId, Comment comment);

    Result sortBy(Long articleId, String sortType);

    Result addLike(Comment comment);
}
